<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>身份证号码验证</title>
    <script>
        var form = document.getElementById('form'); //元素对象form
        var result = document.getElementById('result'); //元素对象div
        var inputs = document.getElementById('input'); //元素对象input
    </script>
    input.card.onblur= function(){ }
</head>

<body>
    <form id="foem">
        身份证号码： <input type="text" name="card">
    </form>
    <div id="result"></div>
</body>

</html>